Skip to content

fix(id): validate serve-proxy frame semantics - #8971

Merged
dezren39 merged 1 commit into
mainfrom
sweep/8951-serve-proxy-frame-semantics
Nov 14, 2026
Merged

dezren39 merged 1 commit into
mainfrom
sweep/8951-serve-proxy-frame-semantics

Conversation

@dezren39

@dezren39 dezren39 commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Summary

Frame::validate
require stream IDs on OPEN/DATA/CLOSE
allow connection- or stream-scoped WINDOW_UPDATE
keep PING/PONG/RESUME/RESUME_ACK/ERROR leg-level
require sequence zero except on DATA
require exactly 4 WINDOW_UPDATE payload bytes

Constructed and decoded frames use the same validation. The ERROR helper now creates a leg-level frame by construction.

Fixes #8951

Evidence

  • Before: documented stream/sequence rules were not enforced; the codec also accepted malformed WINDOW_UPDATE lengths.
  • After: constructor, encode, and wire-decode regressions reject invalid scope/sequence/payload combinations; valid stream and connection-level credit updates remain accepted.
  • cargo test --manifest-path pkgs/id/Cargo.toml --lib serve_proxy passed 11/11 before the final main fast-forward; rustfmt --check --edition 2024 pkgs/id/src/serve_proxy.rs and git diff --check passed. A post-fast-forward focused run is still in progress.
  • Independent review found the additional WINDOW_UPDATE length gap; that was fixed and covered.

Merge Danger

Door: two-way

Blast Radius: narrow — serve-proxy frame codec validation.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 12, 2026 18:37
@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 28 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d36f1e72-4c4b-4f25-812f-44feeb6d9895
Commits

Reviewing files that changed from the base of the PR and between 0d1882d and a30d5a8.

Files selected for processing: 1

  • pkgs/id/src/serve_proxy.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-14T20:08:35.791294Z
We couldn’t complete this review. Comment @codex review to try again.
a30d5a8 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39

Copy link
Copy Markdown
Member Author

CI checkpoint after merge of latest main: PR remains OPEN and unmerged. The new-head check read shows the required basic: id builds without world feature and other basic checks still pending; the fleet-search parity contract check was pending at readback (it had failed on the prior head in run 43281718734). Tracker #8306 remains OPEN for the parity guard red-on-main issue. Local cargo test --manifest-path pkgs/id/Cargo.toml --lib serve_proxy passes 11/11 on the updated source; changed-file rustfmt and diff-check pass. I will not merge before required checks are green.

@dezren39

Copy link
Copy Markdown
Member Author

Fresh check update on head 74ea2861b4 / base 6741fc50a4: required basic: fleet-search pyjson/render parity failed again in run 43282325554; #8306 remains OPEN as the tracker. Other completed basic checks, including the ID no-world build and production-line guard, passed; mcpx unit/E2E shards 0-5 are still pending. Local cargo test --manifest-path pkgs/id/Cargo.toml --lib serve_proxy passes 11/11 on this head, and rustfmt/diff-check pass. PR remains OPEN/UNSTABLE and unmerged pending required checks and the parity blocker.

@dezren39
dezren39 force-pushed the sweep/8951-serve-proxy-frame-semantics branch from 74ea286 to a30d5a8 Compare November 14, 2026 20:08
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@dezren39
dezren39 merged commit c73101b into main Nov 14, 2026
2 checks passed
@dezren39
dezren39 deleted the sweep/8951-serve-proxy-frame-semantics branch November 14, 2026 20:09
@dezren39 dezren39 removed status/in-progress Queue worker lifecycle state queue/claimed Queue worker lifecycle state work/assigned Queue worker lifecycle state labels Nov 14, 2026
@dezren39

Copy link
Copy Markdown
Member Author

agent-note:v1
state: done
task: 17195
lane: code-b
worker: repo-worker-code
note: PR #8971 merged in task 17195 (merge commit c73101b); issue #8951 closed by the merge. Shepherd work: rebased the head branch onto current main (single-file diff preserved exactly, pkgs/id/src/serve_proxy.rs +104/-20), fresh targeted verification on the laptop at the rebased head: cargo test --lib serve_proxy 11 passed, 0 failed; rustfmt --check clean. Codex review had completed on the original head with no findings; the rebase changed no content. The one failing check on the stale head (fleet-search pyjson/render parity) is in an unrelated subsystem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(id): validate serve-proxy frame stream and sequence semantics

1 participant